package com.aaa.service.impl;


import com.aaa.entity.OMS_Order_Return_Reason;
import com.aaa.entity.UMS_Menu;
import com.aaa.mapper.OMS_Order_Return_ReasonMapper;
import com.aaa.service.OMS_Order_Return_ReasonService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OMS_Order_Return_ReasonServiceImpl extends ServiceImpl<OMS_Order_Return_ReasonMapper, OMS_Order_Return_Reason> implements OMS_Order_Return_ReasonService {
    @Resource
    OMS_Order_Return_ReasonMapper oms_order_return_reasonMapper;

    public OMS_Order_Return_ReasonServiceImpl() {
    }

    public Integer updAll(String name, Integer id, Integer status) {
        return this.oms_order_return_reasonMapper.updAll(name, id, status);
    }

    public Integer add(String name, Integer status) {
        return this.oms_order_return_reasonMapper.add(name, status);
    }

    @Override
    public List<OMS_Order_Return_Reason> selectPage(Page<OMS_Order_Return_Reason> paged) {
        Page<OMS_Order_Return_Reason> jobInfoPage = oms_order_return_reasonMapper.selectPage(paged, null);
        List<OMS_Order_Return_Reason> records = jobInfoPage.getRecords();
        return records;
    }

    public List<OMS_Order_Return_Reason> select(String createTime) {
        return this.oms_order_return_reasonMapper.select(createTime);
    }
}
